package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseRespVo {
    private Integer code;
    private String massage;
    private Object data;

    public static BaseRespVo ok(Object data){
        return new BaseRespVo(200,"成功",data);
    }
    public static BaseRespVo ok(){
        return new BaseRespVo(200,"成功",null);
    }
    public static BaseRespVo file(){
        return new BaseRespVo(500,"失败",null);
    }
}
